<%--
  Created by IntelliJ IDEA.
  User: lub_lenovo
  Date: 2017/8/6
  Time: 17:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <!-- 导入css -->
    <link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
    <!-- 导入核心js -->
    <script src="/kindeditor/kindeditor-all.js"></script>
    <!-- 导入語言包 -->
    <script src="/kindeditor/lang/zh_CN.js"></script>
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <title>KE</title>
    <script type="text/javascript">
        var options = {
            allowFileManager : true,
            uploadJson : '/article/upload.do',//后台文件上传处理的路径
            filePostName : 'file'//文件的字段名，一会看到后台代码时会解释怎么使用
        };
        //初始化kindeditor组件
        KindEditor.ready(function(K) {

            window.editor = K.create('#content',options);

        });


    </script>
</head>

<body>
kindeditor测试页面 <br>
<form id="example">
    <textarea id="content" name="content" style="width:700px;height:300px;visibility:hidden;"></textarea><br />
    <a id="btn" class="picFileUpload">提交内容</a> (提交快捷键: Ctrl + Enter)
</form>
</body>
